//
//  ESWeatherNetResult.h
//  EasyStyle
//
//  Created by FK on 16/1/27.
//  Copyright © 2016年 FK. All rights reserved.
//

#import "ESNetResult.h"
@class WeatherLife;
@class WeatherOneWeekInfo;
@class WeatherPM25;
@class WeatherRealtime;

static NSString *const ESWeatherNetResult_realtime = @"ESWeatherNetResult_realtime";
static NSString *const ESWeatherNetResult_weatherLife = @"ESWeatherNetResult_weatherLife";
static NSString *const ESWeatherNetResult_oneWeekWeather = @"ESWeatherNetResult_oneWeekWeather";
static NSString *const ESWeatherNetResult_PM25 = @"ESWeatherNetResult_PM25";

@interface ESWeatherNetResult : ESNetResult

@property (nonatomic,strong) NSDictionary *resultDict;

@property (nonatomic,strong) WeatherRealtime *realtime; /*实时天气*/
@property (nonatomic,strong) WeatherLife *weatherLife; /*生活tips*/
@property (nonatomic,strong) NSMutableArray *oneWeekWeather; /*未来几天天气状况*/
@property (nonatomic,strong) WeatherPM25 *PM25; /*PM25*/


// 解析业务数据
- (void)parseNetResult:(NSDictionary *)jsonDictionary;

/*
 *  功能：解析详细天气数据
 *
 *  detailData:需要解析的原数据
 *  dataType: 指明是ESWeatherNetResult_realtime、ESWeatherNetResult_weatherLife、ESWeatherNetResult_oneWeekWeather、ESWeatherNetResult_PM254中数据的哪一种   若都不是（传入nil）则为外层包含这四个的大数据
 */
- (void)getDetailWeatherData:(NSDictionary *)detailData andDataType:(NSString *)dataType;

@end


@interface WeatherRealtime : NSObject

@property (nonatomic,strong) NSString *windspeed; /*风速*/
@property (nonatomic,strong) NSString *direct; /*风向*/
@property (nonatomic,strong) NSString *power; /*风力级数*/

@property (nonatomic,strong) NSString *humidity; /*湿度*/
@property (nonatomic,strong) NSString *img; /*图片ID*/
@property (nonatomic,strong) NSString *info; /*天气说明*/
@property (nonatomic,strong) NSString *temperature; /*温度*/
@property (nonatomic,strong) NSString *moon; /*农历*/
@property (nonatomic,strong) NSString *date; /*日期*/
@property (nonatomic,strong) NSNumber *week; /*周几*/
@property (nonatomic,strong) NSString *cityName; /*城市名*/

@end


@interface WeatherLife : NSObject



@end

@interface WeatherOneWeekInfo : NSObject

@property (nonatomic,strong) NSString *weatherImgID; /*图片ID*/
@property (nonatomic,strong) NSString *weatherDesc; /*天气说明*/
@property (nonatomic,strong) NSString *weathertemperature; /*温度*/
@property (nonatomic,strong) NSString *weatherWindDirect; /*风向*/
@property (nonatomic,strong) NSString *weatherWindPower; /*风力*/
//@property (nonatomic,strong) NSString *weatherSunrise; /*日出时间*/
@property (nonatomic,strong) NSString *weatherDate; /*日期*/
@property (nonatomic,strong) NSString *weatherWeek; /*周几*/
@property (nonatomic,strong) NSString *weatherNongli; /*农历*/


@end

@interface WeatherPM25 : NSObject

@property (nonatomic,strong) NSString *curPm; /*当前PM*/
@property (nonatomic,strong) NSString *pm25; /*PM2.5*/
@property (nonatomic,strong) NSString *pm10; /*PM10*/
@property (nonatomic,strong) NSNumber *level; /*(不知道干嘛的  API里有)*/
@property (nonatomic,strong) NSString *quality; /*空气质量*/
@property (nonatomic,strong) NSString *des; /*description*/

@end